package com.ruoyi.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/*
 *  @author 雨安
 *  类名： MyBatisPlusConfig
 *  创建时间：2025/3/3
 */
@Configuration
public class MyBatisPlusConfig {
    /**
     * 注册分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        //返回分页插件注册对象
        return new PaginationInterceptor();
    }
}
